using System;
using System.Collections.Generic;

namespace RestNews.Data.Models
{
    public class NewsItem
    {
        public NewsItem()
        {
            this.NewsItemCategories = new List<NewsItemCategory>();
            this.PersonReadNews = new List<PersonReadNew>();
        }

        public long Id { get; set; }
        public string Title { get; set; }
        public string Summary { get; set; }
        public string Text { get; set; }
        public System.DateTime CreationDate { get; set; }
        public System.DateTime ModificationData { get; set; }
        public long PersonId { get; set; }
        public virtual ICollection<NewsItemCategory> NewsItemCategories { get; set; }
        public virtual Person Person { get; set; }
        public virtual ICollection<PersonReadNew> PersonReadNews { get; set; }
    }
}
